Q3Object_IsType
You can use theQ3Object_IsType
function to determine whether a QuickDraw 3D object is of a specific type.
TQ3Boolean Q3Object_IsType ( TQ3Object object, TQ3ObjectType type);
object
- A QuickDraw 3D object.
type
- A type identifier.
DESCRIPTION
TheQ3Object_IsType
function returns a Boolean value that indicates whether the QuickDraw 3D object specified by theobject
parameter is of the type specified by thetype
parameter (kQ3True
) or is of some other type (kQ3False
). You can pass any valid QuickDraw 3D type identifier in thetype
parameter (not just those that are returned by theQ3Object_GetType
function). For example, you can useQ3Object_IsType
like this:
if (Q3Object_IsType(myObject, kQ3ShapeTypeGeometry)) return MyDoGeometry(object);